Merge "Move the "v1" to an adjacent key component in Title::loadRestrictions"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 20 Mar 2019 02:13:51 +0000 (02:13 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 20 Mar 2019 02:13:51 +0000 (02:13 +0000)
includes/Title.php

index 2e43b8d..d8aeb62 100644 (file)
@@ -3342,7 +3342,7 @@ class Title implements LinkTarget, IDBAccessObject {
                                $cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
                                $rows = $cache->getWithSetCallback(
                                        // Page protections always leave a new null revision
-                                       $cache->makeKey( 'page-restrictions-v1', $id, $this->getLatestRevID() ),
+                                       $cache->makeKey( 'page-restrictions', 'v1', $id, $this->getLatestRevID() ),
                                        $cache::TTL_DAY,
                                        function ( $curValue, &$ttl, array &$setOpts ) use ( $loadRestrictionsFromDb ) {
                                                $dbr = wfGetDB( DB_REPLICA );